﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XinjeMesProgram.Entities
{
    public class KDSQLContext : DbContext
    {
        /// <summary>
        /// 数据库连接字符串.
        /// </summary>
        public static string SQLConnectStr { get; set; }


        /// <summary>
        /// .
        /// </summary>
        /// <param name="optionsBuilder">.</param>
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer(SQLConnectStr);
        }

        /// <summary>
        /// .
        /// </summary>
        /// <param name="modelBuilder"></param>
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            
        }
    }
}
